package org.tea.inventory.model.vo;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author hanzy
 * @description
 * @date 2023年04月06日 13:37
 */
@Data
public class ActVo extends BaseActVo {


    /**
     * 第三方
     */
    @ApiModelProperty(value = "第三方")
    private String thirdParty;

    @ApiModelProperty(value = "活动地址")
    private String activityUrl;

    private String relationCoupon;

    @ApiModelProperty(value = "抽奖次数")
    private Integer prizeNum;

    @ApiModelProperty(value = "奖池id")
    private Long prizePoolId;

    @ApiModelProperty(value = "关联兑奖券id")
    private List<Long> couponIds;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "兑换截至日期")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date couponEndTime;

    private String couponEndCron;

    private String couponStatus;

    private String couponStatusName;

    private String receiveType;

    private Integer joinStatus;//0:未开启 1未参加 2 已参加
}
